<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/layui.js"></script>
    <script src="/layui/jquery-3.6.0.min.js"></script>
    <script>
        $(function () {
            layui.use(['form', 'layedit', 'laydate'], function () {
                var form = layui.form
                    , layedit = layui.layedit
                    , laydate = layui.laydate;

            });
        })
    </script>
</head>

<body>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>角色信息修改</legend>
    </fieldset>
    <div class="layui-bg-gray" style="padding: 0px;">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body">

                        <form class="layui-form layui-form-pane" action="/role/edit" method="post">
                            <input type="hidden" name="id" value="${role.id}">
                            <div class="layui-form-item">

                                <label class="layui-form-label">角色名</label>
                                <div class="layui-input-block" style="width:72%">
                                    <input type="text" name="roleName" required lay-verify="required" autocomplete="off"
                                        class="layui-input" value="${role.roleName}">
                                </div>


                            </div>

                            <div class="layui-form-item">

                                <label class="layui-form-label">角色描述</label>
                                <div class="layui-input-inline"></div>
                                <textarea name="roleDesc" style="width:72%" required lay-verify="required"
                                    placeholder="请输入角色描述" class="layui-textarea">${role.roleDesc}</textarea>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <a class="layui-btn" href="/role/permissionAdd?id=${role.id}">权限添加</a>
                                    <button class="layui-btn" lay-submit lay-filter="formDemo">修改</button>
                                    <a class="layui-btn layui-btn-primary layui-border-blue"
                                        href="javascript:history.go(-1)">返回</a>
                                </div>
                            </div>
                        </form>



                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>


</body>

</html>